package com.gao.controller;

import com.gao.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Projectname springboot-09-test
 * @Filename AsyncController
 * @Author an
 * @Data 2022/8/16 10:00
 * @Description TODO
 */
@RestController
public class AsyncController {

    @Autowired
    AsyncService asyncService;

    @GetMapping("/hello")
    public String hello(){
        asyncService.hello();
        return "sucess";
    }

    @RequestMapping("/test")
    public String test(){
        return "test";
    }


}
